import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqPointHelper } from "./SeqPointHelper";
import { SeqSBossPointHelper } from "./SeqSBossPointHelper";
type int = number;
//class SBossPoints
    
    export  class SBossPoints extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SBossPoints();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.mapId);
            SeqPointHelper.write(arg1, this.points);
            SeqSBossPointHelper.write(arg1, this.bossPoints);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.mapId = arg1.readInt();
            this.points = SeqPointHelper.read(arg1);
            this.bossPoints = SeqSBossPointHelper.read(arg1);
            return;
        }

        public /* const */_type: int=110;

        public /* var */mapId: int;

        public /* var */points: Array<any>;

        public /* var */bossPoints: Array<any>;

        public static /* var */_regist: SBossPoints;
    }

            SBossPoints._regist = new SBossPoints(true);
        